package com.tfswue.zqm.apis;

import com.tfswue.zqm.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "user-server")
public interface UserClient {
    //复制usercontroller中的方法除了方法体，GetMpping中的路径要自行拼接
    @GetMapping("/api/users/{id}")
    public User getUserById(@PathVariable("id") Long id);
}